package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class VideoResourceDto extends BaseDto{

    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "资源ID")
    private Integer resourceId;

    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "资源类型")
    private Integer resourceType;

    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotBlank(message = "封面图不能为空")
    @ApiModelProperty(value = "封面图")
    private String previewImage;

    @NotBlank(message = "资源key值不能为空")
    @ApiModelProperty(value = "资源对应的key值")
    private String fileKey;

    @NotNull(message = "收费类型不能为空")
    @ApiModelProperty(value = "当前资源收费类型")
    private Integer chargeType;

    @NotNull(message = "排序字段不能为空")
    @ApiModelProperty(value = "排序字段")
    private Integer orderNo;

    @ApiModelProperty(value = "用户手机")
    private String userPhone;
}
